//
//  EVTextField.h
//  EVClub
//
//  Created by Eric on 15/3/30.
//  Copyright (c) 2015年 BitRice. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CoverManager.h"
@class EVTextField;
@protocol EVTextFieldDelegate <NSObject>
@optional
-(void)EVTextFieldDidPressed:(EVTextField*)textField;
-(void)FinishButtonDidPressed:(EVTextField*)textField;
-(void)CancelButtonDidPressed:(EVTextField*)textField;
-(void)EVTextFieldTextDidChanged:(EVTextField*)textField;
@end
/**注意：若重设TextFieldDelegate，默认功能失效*/
@interface EVTextField : UITextField
@property(nonatomic,assign) UIView *coverManagerView;
@property(nonatomic) CGRect recoverRect;/**<点击完成后页面强制恢复到recoverRect*/
@property(nonatomic) CGFloat paddingLeft;
@property(nonatomic) CGFloat paddingRight;
@property(nonatomic) CGFloat paddingUp;
@property(nonatomic) CGFloat paddingDown;
@property(nonatomic) BOOL selectMode;
@property(nonatomic) IBInspectable BOOL showInputAccessoryView;
@property(nonatomic) IBInspectable NSUInteger numberOfLimitChar;
@property(nonatomic,strong) CoverManager *coverManager;
@property(nonatomic,assign) id<EVTextFieldDelegate>clickDelegate;

@end

@interface EVTextFieldDefaultDelegate : NSObject<UITextFieldDelegate>
@property(nonatomic,weak) EVTextField *targetField;
@end
